<?php use_helper('I18N', 'Date') ?>
<?php include_partial('bb_prestamo/assets') ?>
<script type="text/javascript">
  if(window.parent.$('#site').dialog("option", "width") == 'auto'){
  var width = $(window.parent).width();
  var height = $(window.parent).height();
  window.parent.$('#site').dialog("option", "width", width - 30);
  window.parent.$('#site').dialog("option", "height", height - 70); 
  window.parent.$('#site').width(width - 40);
  window.parent.$('#site').height(height - 70);
  window.parent.$('#site').dialog( "option", "position", 'center' );    
  }

</script>
<div id="sf_admin_container">
  <h1><?php echo __('Bb prestamo List', array(), 'messages') ?></h1>

  <?php include_partial('bb_prestamo/flashes') ?>

  <div id="sf_admin_header">
    <?php include_partial('bb_prestamo/list_header', array('pager' => $pager)) ?>
  </div>


  <div id="sf_admin_content">
    <?php include_partial('bb_prestamo/list', array('pager' => $pager, 'sort' => $sort, 'helper' => $helper)) ?>
    <ul class="sf_admin_actions">
      <?php include_partial('bb_prestamo/list_batch_actions', array('helper' => $helper)) ?>
      <?php include_partial('bb_prestamo/list_actions', array('helper' => $helper)) ?>
    </ul>
  </div>

  <div id="sf_admin_footer">
    <?php include_partial('bb_prestamo/list_footer', array('pager' => $pager)) ?>
  </div>
</div>
